#
# Copyright 2009, Jeffrey Palm.
#

# State of the player
PLAYING = 'playing'
PAUSED  = 'paused'

# Plays Track's and can expose it's state through Info
class Player

  # Returns map with the following keys, that represents a song in a
  # library -- not a thing, like a Track:
  #
  #     state  PLAYING | PAUSED
  #    artist  String
  #     track  String
  #     album  String
  #      time  int (seconds)
  #      user  String (shared key)
  #
  def read_info(user)
    eek 'read_info'
  end

  # Starts playing track with track_id, puts the player state PLAYING
  def play_track(track_id)
    eek 'play'
  end

  # Puts the player state to PAUSED
  def pause
    eek 'pause'
  end

end
